package cc.comac.mom.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipPatrolCheckPlanItemService;
import cc.comac.mom.bean.EquipPatrolCheckPlanItem;
import cc.comac.mom.bean.EquipPatrolCheckPlanItemBean;
import cc.comac.mom.util.ResultBean;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping(value = "/EquipPatrolCheckPlanItem")
public class EquipPatrolCheckPlanItemController {

	@Autowired
	private EquipPatrolCheckPlanItemService equipPatrolCheckPlanItemService;
	
	@ApiOperation("巡检设备信息查询")
	@RequestMapping("/selectByFields")
	public ResultBean selectByFields(@RequestBody EquipPatrolCheckPlanItemBean obj) {
		return equipPatrolCheckPlanItemService.selectByFields(obj);
	}
	
	@ApiOperation("批量删除巡检计划设备信息")
	@RequestMapping("/deleteBatch")
	public ResultBean deleteBatch(@RequestBody List<EquipPatrolCheckPlanItem> list) {
		return equipPatrolCheckPlanItemService.deleteBatch(list);
	}
}
